package com.abocode.aichat.app.vo;


import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 *  Created by guanxf on 2015/12/16.
 */
@Data
public class AuthorizationVo {
    @NotNull
    private   String   authorization ="Authorization";//	手机端mac地址
    @NotNull
    @Size(min = 1, max = 50)
    private String  token="X-SNS-Token";//:*鉴权，md5(DATA + Appid + Version + Dtype + Appid + DATA + Dtype)
    @NotNull
    @Size(min = 1, max = 32)
    private   String appid;//:	*应用编号（产品ID）
    @NotNull
    @Size(min = 1, max = 16)
    private   String dtype ="X-SNS-Dtype";//	*设备类型，Android、iOS
    @NotNull
    @Size(min = 1, max = 32)
    private   String  version="X-SNS-Version";//	*客户端版本号
    @NotNull
    @Size(min = 1, max = 60)
    private   String  data="X-SNS-DATA";//:	*md5(http body)
    @Size( max = 64)
    private   String  imei ="X-SNS-Imei";//	IMEI
    @Size( max = 64)
    private   String  imsi="X-SNS-Imsi";	//IMSI
    @Size( max = 16)
    private   String  apn ="X-SNS-Apn";//	网络接入点名称，如uninet，cmnet，uniwap，cmwap，3gwap，3gnet，wifi，ctnet,ctwap(能获取到的必须传，iphone获取不到可为空)
    @Size( max = 16)
    private   String  nettype="X-SNS-Nettype";//	网络类型：Wifi、2G、3G、4G
    @Size( max = 64)
    private   String  mac ="X-SNS-Mac";//	手机端mac地址



}
